<?php
include "../dbase/db.php";
$id=intval($_GET['id']);
if(empty($id)){die("ID不能为空");}
$sql=mysql_query("delete from artical where id=$id",$link);
if($sql){
    $f=<<<f
    <script>
        alert("删除成功");
        window.location.href="artical.php";
    </script>
f;
echo $f;
}else{
    echo "删除失败";
}